The IDLE is a shell that can be used to run Python commands or Python programs.
To open a code editor in which to write a program you can click File, New File.
When you run the code messages go to the shell window.
There should be a code editor window to write the code into.
To run the code there should be a run button and the messages should appear in the shell window.
Type print("== Welcome GCSE student ==") into the code editor window and run the module
On the right is a very simple program similar to one that you should have made already.
Create this program and save it as interviewer
The program stores the user response to the input into a variable. The response is them printed with message.
Add some more code into your interviewer program to gather more data from the interviewee (address, e-mail etc..) and add more code to display the data.
The picture shows how to ask for the age and convert it to an integer. Add this into your program too.
If statements can be used to control what instructions the program does.
First at the very start of your program insert the import time instruction so the sleep will work:
Next add the code below to the end of you program. The : is needed to mark the end of the if statement
the editor will indent away from the margin for the next block automatically.
The if block finishes when you press backpace to stop the indent.
Run your program; if you have made a mistake try to fix it. The : and the indenting from the margin are important
Add more lines of code like the email=input("Please enter you email address: ") to get more infomation from the candidate. Click here to add quiz questions to your interviewer